package material.factory;

public class Store {
    public static void main(String[] args) {
        //首先建立商店
        PizzaStore nyPizzaStore = new NYPizzaStore();
        PizzaStore chicaoStore = new ChicagoPizzaStore();

        Pizza pizza = nyPizzaStore.orderPizza("cheese");
        System.out.println("---------纽约风味的芝士披萨制作完成："+pizza.toString()+"---------------------");
        pizza = chicaoStore.orderPizza("cheese");
        System.out.println("---------芝加哥风味的芝士披萨制作完成："+pizza.toString()+"---------------------");
    }
}
